package com.imc.core.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by tanweiping on 2018/9/21.
 */
public class DateUtils {

    private static final SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    private static final SimpleDateFormat dateFormatDD=new SimpleDateFormat("yyyy-MM-dd");

    public static String  getCurrentDate(){
        return dateFormat.format(new Date());
    }

    public static String  getCurrentDateDD(){
        return dateFormatDD.format(new Date());
    }
}
